<div id ='check-login'>
<!--Check Login Module-->
<?php
	session_start();
	if(!isset($_SESSION['loggedin'])){
    	include 'login.php';
		//echo "<a href='login.php'>LOGIN</a>"; // Make sure they are logged in!
	}else{
		//Logout blocked restaurant users
		if($_SESSION['is_blocked']==1){
			header("Refresh: 2;url=logout.php");
   			die("Your account is blocked, please contact Administrator. Click <a href='logout.php'>here</a> if your browser cannot redirect");
		}
				
		// Display Logout Bar on top
		echo "<p style='padding-right:10px;'>Name : ".$_SESSION['name']."&nbsp;&nbsp;||&nbsp;&nbsp;<input type='button' name='logout_btn' value='Logout' onclick='window.location=\"logout.php;\"' /></p>";
		//echo "<br>";
	}
?>
</div>